<?php


class Shop {
	private $id;
	//object
	private $delivery;
	private $name;
	private $address;
	private $phone;
	//array of objects
	private $shop_promo= array();

	function __construct(Array $shop) {
		$this->setName($shop["name"]);
		$this->setAddress($shop["address"]);
		$this->setId($shop["id"]);
		$this->setDelivery($shop["delivery"]);
		$this->setPhone($shop["phone"]);
		$this->setShopPromo($shop["shop_promo"]);
	}


	/**
	 * @param mixed $address
	 */
	public function setAddress($address) {
		$this->address = $address;
	}

	/**
	 * @return mixed
	 */
	public function getAddress() {
		return $this->address;
	}

	/**
	 * @param mixed $delivery_id
	 */
	public function setDelivery($delivery) {
		$this->delivery = $delivery;
	}

	/**
	 * @return mixed
	 */
	public function getDelivery() {
		return $this->delivery;
	}

	/**
	 * @param mixed $id
	 */
	public function setId($id) {
		$this->id = $id;
	}

	/**
	 * @return mixed
	 */
	public function getId() {
		return $this->id;
	}

	/**
	 * @param mixed $name
	 */
	public function setName($name) {
		$this->name = $name;
	}

	/**
	 * @return mixed
	 */
	public function getName() {
		return $this->name;
	}

	/**
	 * @param mixed $phone
	 */
	public function setPhone($phone) {
		$this->phone = $phone;
	}

	/**
	 * @return mixed
	 */
	public function getPhone() {
		return $this->phone;
	}

	/**
	 * @param array $shop_promo
	 */
	public function setShopPromo($shop_promo) {
		$this->shop_promo = $shop_promo;
	}

	/**
	 * @return array
	 */
	public function getShopPromo() {
		return $this->shop_promo;
	}

}
?>